// dlg.txt

//MK Edit

//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 19;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "This path is narrow and dark. The foliage overhead is so thick that it feels like a tunnel. It is grim and claustrophobic. Occasionally, a branch falls on your head.";
	text2 = "You have found one of the sacred groves of the Kranas. The tracks in the mud aren't fresh. You can hear faint humming, coming from deeper in the woods.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "You enter a grove. It is a huge relief to be able to see the sky again. Ancient, weather-worn stones poke out of the thick undergrowth. The smell of grass and fallen leaves is overpowering.";
	text2 = "Dominating your attention, however, are the wolves. There are three of them. They are enormous, ten feet tall at the shoulders, and raw magic radiates off of them.";
	text3 = "They are angry, imposing, and a bit hungry. Yet, they are kind enough to not attack you. Instead, they wait for you to approach.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0 && gf(19,11) > 0;
	text1 = "You return to the large grove. Now that the mad wolf has been slain, everything is brighter and cheerier. The wolves seem far more peaceful. Though that can change in a moment.";
	text2 = "One thing has changed. There is a fourth wolf here now. It is small, only a few years old. It sits in the spot where the mad wolf once waited.";
	code =
		sf(this_town,3,1);
		spawn_creature(1904);
		set_name(1904,"Pupper of the Grove");
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "The narrow paths of the grove extend farther into the valley. The trees are older. The undergrowth is thicker. It is almost pure nature, barely even seen by humanity.";
	text2 = "When you enter, you hear howls. There are many wolves in the deep grove, calling to each other.";
	text3 = "As you progress, you step on a twig. There is a tiny snap, barely perceptible. Yet, a moment, later, all of the wolves are silent. Alerted and waiting.";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "The path opens up onto another grove. Again, you can see the sky. There is another huge wolf here. It looks like the three you met earlier. Except, it is larger. Dirtier. Angrier. You can sense its fury.";
	text2 = "It paces back and forth, growling and drooling. It is the rage of the forest made flesh. You can already tell that there will be no conversation with this beast. All it wants is to expend its anger on humanity.";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0 && gf(30,17) == 2;
	text1 = "You find a huge, old stump. This was once one of the grand, enchanted trees of the grove. It died, but this enormous, grand pillar of wood remains.";
	text2 = "Remembering the request you received in the Tower of the Erudico, you examine the stump closely, looking for a remaining trickle of fresh sap.";
	text3 = "Alas, this stump is too old. It's completely dry.";
	text4 = "You are in luck. You pull off a bit of bark, and a tiny trickle of sap slowly runs out. The grove immediately fills with a powerful, piney smell. You collect the sap.";
	code =
		sf(this_town,6,1);
		inc_flag(18,13,1);
		if (gf(18,13) != 3)
			rs(4);
			else {
				rs(3);
				set_spec_item(18,1);
				}
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0 && gf(30,17) == 2;
	text1 = "You find a huge, old stump. This was once one of the grand, enchanted trees of the grove. It died, but this enormous, grand pillar of wood remains.";
	text2 = "Remembering the request you received in the Tower of the Erudico, you examine the stump closely, looking for a remaining trickle of fresh sap.";
	text3 = "Alas, this stump is too old. It's completely dry.";
	text4 = "You are in luck. You pull off a bit of bark, and a tiny trickle of sap slowly runs out. The grove immediately fills with a powerful, piney smell. You collect the sap.";
	code =
		sf(this_town,7,1);
		inc_flag(18,13,1);
		if (gf(18,13) != 3)
			rs(4);
			else {
				rs(3);
				set_spec_item(18,1);
				}
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "You find a morbid sight. This grove is littered with bones. Some recently placed here. Some old. All of them sinking into the loam, all of them scraped clean. Roots reach out out of the earth, grab them, and very slowly pull them down.";
	text2 = "All of the bones are human. Some look bent with age. Others are clearly from children. None of the bones show signs of breakage or weapon blows.";
	text3 = "Very odd and unsettling. Certainly something that wasn't mentioned when you were told about the Kranas Woods as a child.";
	text4 = "This is identical to what you saw in the last grove. This seems to be a regular feature.";
	code =
		sf(this_town,8,1);
		if (gf(80,20) == 0) {
			sf(80,20,1);
			rs(4);
			}
			else rs(3);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The wolf looks at you with distaste. And a bit of confusion. It is full of the magical energy of the forest, but it isn't intelligent enough to communicate. Maybe one of the other wolves will be more helpful.";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "The little wolf growls at you. It's kind of adorable.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "All of the wolves of Deepgrove have been slain. The moment the last one falls, the forest changes. The trees seem to shrink back. The aura of power fades. The woods here are now just that: woods.";
	text2 = "Another of the sacred groves of the Kranas Woods has fallen. When the Ro here find out, they will be very angry. On the bright side, you are now free to loot.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "This wolf was the manifestation of the rage of the grove. It has been destroyed. The groves are not emotionally complicated beings. When the anger is destroyed, the grove calms down. You immediately feel less threatened and claustrophobic.";
	text2 = "The Ro near this grove will be less threatened now, for a time. This bit of rage has been pruned, but, if nothing is done, another is sure to grow.";
	
begintalknode;
	tag = 17;
	condition = 1;
	text1 = "The foul beast lets out an angry howl. Its cry for help echoes through the forest.";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "The wolf lunges forward and grabs its target in its massive jaws. The beast charges to the edge of the grove.";
	text2 = "At the same time, roots grow out of the ground and grab at your ankles!";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// Druandi

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a lone human kneeling in this grove. He is a teenager, definitely on the young side to be this far out in the wilderness. Yet, he is wearing the ceremonial garb of the druids of the Kranas.";
	text2 = "He stares into the woods to the north, offering bowls in front of him. When you get close, he gives you a quick look. _This is not your place, Haven. I am Druandi, and I am calming the woods. You will only make them angrier._";
	text5 = "Druandi occasionally looks back at you. He has a little sneer on his lips. Even the majesty of Haven cannot overpower the arrogance of a teenager.";
	action = INTRO;

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(19,11) == 0;
	question = "_What are you doing here?_";
	text1 = "_The grove is angry. Can you not feel it? Perhaps you are too old. It lashes out at us, at the good people of the Kranas. It must be calmed._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Why is the grove angry?_";
	text1 = "_Look to your own actions, Haven. Your governor devours us for her own wealth and power._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_How are you calming the grove?_";
	text1 = "_I bring it gifts. I speak to it. I listen to it. There is a rotten part within, and it must be cut out. I don't know how, though._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_Why don't you know?_";
	text1 = "He rolls his eyes a little. _Because, to fully see, I must enter the grove. I can't see the details from this far away._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_Why don't you just walk farther in?_";
	text1 = "_Because the wolves will devour me. That is how sick and angry the grove is. I must do my work from here._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(19,11) > 0;
	question = "_What are you doing here?_";
	text1 = "The boy sniffs the air. For a moment, he almost smiles. _I am listening to the grove. It is still angry, but it is calmer now. I want to understand it, so that it doesn't lash out again._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(80,20) > 0;
	question = "_There are bones in some of the sacred groves. Why?_";
	text1 = "You have actually succeeded in making him nervous. _The Kranas has its own ways, Haven. We follow our treaty, and we live our lives as we choose._";

begintalknode;
	state = 10;
	nextstate = 14;
	condition = gf(19,11) == 0;
	question = "_Is there anything I can do here?_";
	text1 = "He thinks about this for a moment. _The grove is doing harm. It must be calmed. However, you can't be trusted to do it. Haven hurts as much as it heals._";
	text2 = "_You should leave._";

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_I am from Haven. I will go where I want._";
	text1 = "The young druid stares into the shadows. He is ignoring you now.";
	action = END_TALK;

begintalknode;
	state = 14;
	nextstate = -1;
	condition = 1;
	question = "_Noted._";
	text1 = "The young druid nods. _You do your business, Haven, and we will do ours._";
	action = END_TALK;
	
begintalknode;
	state = 10;
	nextstate = 15;
	condition = gf(19,11) > 0 && gf(19,12) == 0;
	question = "_I have pruned out the corrupt part of your glade._";
	text1 = "Now, at last, you have gotten a scrap of respect out of this Ro youth. He looks up at you. _You did? You cut out the evil that was attacking us?_";
	
begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_It was a big wolf._";
	text1 = "Druandi nods. _That isn't surprising. I thank you, Haven. You did good for us. I ask that you leave now, before you accidentally do harm. The Ro in Ssilyn will want to show gratitude._";
	text2 = "He turns and looks back into the trees.";
	action = END_TALK;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(19,12) > 0;
	question = "_Don't worry. I have pacified your grove. It won't hurt you anymore._";
	text1 = "He leaps to his feet. _I thought ... I thought I felt it. The death of our grove! I wanted to believe otherwise, but ..._ His voice rises to a furious screech. _You killed it! You destroyed our grove!_";
	text2 = "_Invader! Murderer! The honor of the Kranas demands that you pay!_ And then the young fool attacks.";
	action = END_TALK;
	code =
		set_attitude(1900,10);
	break;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "This enormous wolf looks down at you. Its eyes are pure, feral ice, and strings of drool hang from its jaws. Yet, it is in control. For now, it is willing to face you. It stares at you with unmistakable, cunning intelligence.";
	text2 = "It lets out a low growl of warning. It can't speak, though. It doesn't have the vocal cords for it. It just growls and looks down at you, the world's largest dog.";
	text5 = "The enormous, imposing wolf stares down at you. Sometimes, its tail twitches. You suspect that it wants to scratch, but it would just be too undignified with you here.";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Fetch! Play fetch!_";
	text1 = "The giant wolf gives you a look of clear contempt. Maybe it never plays fetch. Or maybe your treats just aren't big enough.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Pet the wolf.";
	text1 = "The wolf jumps back and growls. It is nobody's pet.";
	text3 = "At first, the wolf resists. Then he remembers the noble service you performed. He lowers his enormous head and lets you scratch him behind the ears. He is unable to keep his tail from doing little wags.";
	action = DEP_ON_SDF 19 11 0;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Stare the wolf in the eyes.";
	text1 = "The wolf evenly meets your gaze. He won't be out-alphaed in his own grove.";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = gf(19,11) == 0;
	question = "_What is wrong?_";
	text1 = "The wolf struggles to communicate. It can't talk, after all. Instead, it looks intensely at the empty, abandoned nest in the northwest corner of the grove.";

begintalknode;
	state = 40;
	nextstate = 42;
	condition = gf(19,11) > 0;
	question = "_I have killed the mad wolf._";
	text1 = "There is a long silence. Then the four wolves lift their heads to the sky and let out an anguished howl.";
	
begintalknode;
	state = 40;
	nextstate = 43;
	condition = gf(19,11) > 0;
	question = "_I have pacified your grove. It belongs to Haven now._";
	text1 = "The wolves pick up on your confident arrogance, and they do not appreciate it. In unison, they let out a long, low growl of warning.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Just leave.";
	text1 = "The wolves watch in silence as you depart.";
	action = END_TALK;

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "Howl.";
	text1 = "It is completely unexpected and entirely inappropriate for a [P] of Haven. Your mother wouldn't approve. Yet, somehow, you can't resist. You raise your head and join the wolves in their grief.";
	text2 = "When the cry is done, you turn and walk away. Somehow, you know that it is the appropriate thing to do.";
	action = END_TALK;

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_Actually, never mind. It's your grove. Enjoy it._";
	text1 = "Satisfied, the wolves decide not you eat you. They turn away.";
	action = END_TALK;

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_Don't growl at me, beast, or I'll have to tame you._";
	text1 = "As grateful as the wolves were, they are still mighty, powerful spirits of the forest. Some insults simply cannot be tolerated. All four of them pounce.";
	action = END_TALK;
	code =
		set_attitude(30001,10);
	break;
		
begintalknode;
	state = 41;
	nextstate = 44;
	condition = 1;
	question = "_There was another wolf here?_";
	text1 = "The three wolves turn and face north. One of them points in that direction with a forepaw.";

begintalknode;
	state = 44;
	nextstate = 45;
	condition = 1;
	question = "_And you don't like it?_";
	text1 = "The wolves let out deep, angry growls in response.";

begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_Tell me more about this wolf. What does it want? Why? What made it go mad? How do you feel about it?_";
	text1 = "The wolf, who continues to be unable to talk, gives you a sort of an 'Oh, come on' look.";

begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_You want it brought back here?_";
	text1 = "The wolves shake their heads.";
	text2 = "";

begintalknode;
	state = 45;
	nextstate = 46;
	condition = 1;
	question = "_You want it destroyed?_";
	text1 = "The wolves bare their mighty fangs. They are most unhappy about it, but the meaning is clear.";
	text2 = "There is the sound of groaning wood and breaking branches. You look to the north and see that a bunch of trees have moved aside, opening a path.";
	code =
		if (gf(19,14) == 0)
			sf(19,14,1);
			else rs(2);
	break;
	
begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_I'll see what I can do._";
	text1 = "The wolves back away, clearing your path.";
	action = END_TALK;

begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_Thanks for the information and barking and such._";
	text1 = "The wolves give you a solemn nod. Then they back away, clearing your path.";
	action = END_TALK;

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				